package naga.x.net.impl.pomelo.config;

// pomelo/lib/connectors/hybridconnector.js
// pomelo/lib/components/protobuf.js
/**
 * <pre>
 * clientProtos.json/serverProtos.json
 * {
 *   "route": {
 *     "field 1": 1,
 *     "field 2": 2,
 *   }
 * }
 * eg.
 * {
 *   "chat.chatHandler.send": {
 *     "required string rid": 1,
 *     "required string content": 2,
 *   }
 * }
 * </pre>
 */
public class Protobuf {

	private Object server; // the server's protos(json)->server encode/client decode(response)
	private Object client; // the client's protos(json)->client encode/server decode(request)
	private String version; // base64(md5(client + server))
	
	public Protobuf() {}

	public Object getServer() {
		return server;
	}

	public void setServer(Object server) {
		this.server = server;
	}

	public Object getClient() {
		return client;
	}

	public void setClient(Object client) {
		this.client = client;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}
	
}
